
            $(function(){ 
                var u = navigator.userAgent, app = navigator.appVersion; 
                var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器 
                var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 
                if(isAndroid){ 
                    $('#mc_play').attr('class','on')
                }
                if(isiOS){
                    $('#mc_play').attr('class','stop')
                }
            })
                function play_music(){
                    var u = navigator.userAgent, app = navigator.appVersion; 
                    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器 
                    var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 
                    if(isAndroid){ 
                        if ($('#mc_play').hasClass('on')){
                            $('#musicfx')[0].pause();
                            console.log(1);
                            $('#mc_play').attr('class','stop');
                            $('#musicControl a.on').css("-webkit-animation-play-state","paused");
                        }else{
                            console.log(2);
                            $('#musicfx')[0].play();
                            $('#mc_play').attr('class','on');
                            $('#musicControl a.on').css("-webkit-animation-play-state","running");
                        }
                        }
                    if(isiOS){
                        if ($('#mc_play').hasClass('on')){
                            $('#musicfx')[0].pause();
                            console.log(1);
                            $('#mc_play').attr('class','stop');
                            $('#musicControl a.on').css("-webkit-animation-play-state","paused");
                        }else{
                            console.log(2);
                            $('#musicfx')[0].play();
                            $('#mc_play').attr('class','on');
                            $('#musicControl a.on').css("-webkit-animation-play-state","running");
                        }
                        }
                    
                    $('#music_play_filter').hide();
                    event.stopPropagation(); //阻止冒泡
                }
            
                function just_play(id){
                    $('#mc_play audio').get(0).play();
                    $('#mc_play').attr('class','on');
                    $('#musicControl a.on').css("-webkit-animation-play-state","running");
                    if (typeof(id)!='undefined'){
                        $('#music_play_filter').hide();
                    }
                    event.stopPropagation(); //阻止冒泡
                }
            
                function is_weixn(){
                    return false;
                    var ua = navigator.userAgent.toLowerCase();
                    if(ua.match(/MicroMessenger/i)=="micromessenger") {
                        return true;
                    } else {
                        return false;
                    }
                }
                var play_filter=document.getElementById('music_play_filter');
                play_filter.addEventListener('click', function(){
                    just_play(1);
                });
                play_filter.addEventListener('touchstart', function(){
                    just_play(1);
                });
                play_filter.addEventListener('touchend', function(){
                    just_play(1);
                });
                play_filter.addEventListener('touchmove', function(){
                    just_play(1);
                });
                play_filter.addEventListener('mousedown', function(){
                    just_play(1);
                });
                play_filter.addEventListener('mouseup', function(){
                    just_play(1);
                });
                play_filter.addEventListener('mousemove',function(){
                    just_play(1);
                });
                window.onload=function(){
                    if (!is_weixn()){
                        just_play();
                    }
                }